package guitest03;

import javax.swing.UIManager.*;
import javax.swing.*;
import javax.swing.JFrame;
import java.awt.event.*;

public abstract class GuiTest03 implements ActionListener {


    /**
     * Create the GUI and show it.  For thread safety,
     * this method should be invoked from the
     * event-dispatching thread.
     */
    
    // To make thread safe
    public static void Run(){
        JFrame.setDefaultLookAndFeelDecorated(true);
        try {
            for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (Exception e) {
            // If Nimbus is not available, you can set the GUI to another look and feel.
        }
        //Create and set up the window.
        Gui frame = new Gui();
        
        //Display the window.
        frame.setVisible(true);
    }
    
    public static void main(String[] args) {
        //Make sure we have a thread safe build
        Run();
    }
   
  }